/**
 * @description:登录验证码返回接口
 * @return {*}
 * @author: Shi Hexiang
 */
export namespace LoginRes {
  export interface SysUser {
    id?: number
    roleId?: number
    account?: string
    name: string
    deptId?: number
    phone: string
    email: string
    sex?: string
    imgPath?: string
    password?: any
    status?: string
    delFlag?: boolean
    loginDate?: any
    createBy?: string
    createTime?: string
    updateBy?: string
    updateTime?: any
    remark?: any
    type?: string
    beginTime?: any
    endTime?: any
  }
  export interface SysMenu {
    id: number
    name: string
    pid: number
    sort: number
    path: string
    component?: any
    type: number
    status: number
    perms: string
    icon: string
    createBy: string
    createTime: string
    updateBy: string
    updateTime: string
    remark: string
    children?: SysMenu[]
  }
  //获取验证码
  export interface CodeInfo {
    codeEnable: boolean
    uuid: string
    codeImg: string
  }

  //用户登录
  export interface UserInfo {
    token: string
    loginTime: number
    expireTime: number
    permissions?: any
    sysUser: SysUser
  }

  // 获取用户权限信息
  export interface UserPermissions {
    permissions: string[]
    sysMenus: SysMenu[]
  }
}
